/*
* Copyrigth 2008 Company All rigths reserved
* File Name: ILaboratory.cs
* Created By:    Wenbin.Xu
* Created Date:   2013/7/8 16:06:50
* Description:    Laboratory模块的接口
* Change History: 
* 
* */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingsApp.Model;
using TrainingsApp.DAL;
using System.Web.UI.WebControls;

namespace TrainingsApp.Logic
{
    public class TS_Class_Logic
    {
        public static TS_Class_Collecion TS_Class_ListByPaging(int pageSize, int pageIndex)
        {
            return TS_Class_DAL.TS_Class_ListByPaging(pageSize, pageIndex);
        }

        public static List<TS_Class_Entity> TS_Class_ListBySchoolId(int schoolId)
        {
            return TS_Class_DAL.TS_Class_ListBySchoolId(schoolId);
        }

        public static List<TS_Grade_Entity> TS_Class_ListGrade(int schoolId)
        {
            return TS_Class_DAL.TS_Class_ListGrade(schoolId);
        }

        public static List<TS_Class_Entity> TS_Class_ListClass(int schoolId, int grade)
        {
            return TS_Class_DAL.TS_Class_ListClass(schoolId, grade);
        }


        public static TS_Class_Entity TS_Class_View(System.Int64 Idx)
        {
            return TS_Class_DAL.TS_Class_View(Idx);
        }

        public static TS_Class_Entity TS_Class_Add(TS_Class_Entity entity)
        {
            return TS_Class_DAL.TS_Class_Add(entity);
        }

        public static void TS_Class_Update(TS_Class_Entity entity)
        {
            TS_Class_DAL.TS_Class_Update(entity);
        }

        public static void TS_Class_Delete(System.Int64 Idx)
        {
            TS_Class_DAL.TS_Class_Delete(Idx);
        }

        public static List<TS_Class_Entity> TS_Class_GetClassesByUserId(long userId)
        {
            return TS_Class_DAL.TS_Class_GetClassesByUserId(userId);
        }
    }
}
